package com.ada.netty;

import io.netty.util.HashedWheelTimer;

import java.util.concurrent.TimeUnit;

public class App {


    public static void main(String[] args) {


        HashedWheelTimer hashedWheelTimer = new HashedWheelTimer();
        hashedWheelTimer.newTimeout((time)->{
            System.out.println(time.isExpired());
            System.out.println("hi");
        },5, TimeUnit.SECONDS);

    }
}
